import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import "./assets/reset.css"
import './comp/index'
import 'sweetalert2/dist/sweetalert2.min.css'
import * as dialogUtils from './utils/dialog'

Vue.prototype.$swal = require('sweetalert2').default
Vue.prototype.$showSuccess = dialogUtils.showSuccess
Vue.prototype.$showError = dialogUtils.showError
Vue.prototype.$showWarning = dialogUtils.showWarning
Vue.prototype.$showInfo = dialogUtils.showInfo
Vue.prototype.$showConfirm = dialogUtils.showConfirm
Vue.prototype.$showLoginPrompt = dialogUtils.showLoginPrompt

Vue.config.productionTip = false

Vue.prototype.formatime = function (date) {
  return date.toLocaleDateString() + " " + (date.toLocaleTimeString())
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

document.title = "博客-管理系统"
